package com.joker.myrule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义负载均衡
 *
 * @Author JokerKS
 * @Date 2021/12/21 15:42
 * @Version 1.0
 */
@Configuration
public class JokerRule {
	@Bean
	public IRule myRule() {
		return new JokerRandomRule();
	}
}
